package com.chinairi.mall.service;

import com.chinairi.mall.controller.viewobject.ServiceTypeTreeVO;
import com.chinairi.mall.model.ServiceType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinairi.mall.service.modelobject.ServiceTypeMO;

import java.util.List;

/**
 * <p>
 * 服务类型 服务类
 * </p>
 *
 * @author gsl
 * @since 2020-09-03
 */
public interface IServiceTypeService extends IService<ServiceType> {

    /**
     *
     * @param serviceTypeName
     * @return
     */
    List<ServiceType> getList(String serviceTypeName);

    /**
     * 根据stSerTypeDbid查找子类
     * @param dbId
     * @return
     */
    List<ServiceTypeMO> getListByStSerTypeDbId(String dbId);

    /**
     * 返回服务树
     * @return
     */
    ServiceTypeTreeVO getServiceTree();
}
